package com.mlk.engSystem.service;

import com.mlk.core.component.page.Pager;
import com.mlk.core.util.ServerResponse;
import com.mlk.engSystem.po.EngPicBase;
import com.mlk.engSystem.po.EngPicBaseAddress;
import org.springframework.web.multipart.MultipartFile;

public interface EngPicBaseService {
    ServerResponse addEngPicBase(EngPicBase engPicBase);

    ServerResponse addEngPicBaseAddress(EngPicBaseAddress engPicBaseAddress, MultipartFile file);

    ServerResponse findAddEngPicBase(String allParameters,Integer page,Integer limit);

    /**
     * 删除图片
     * @param id
     * @return
     */
    ServerResponse delPic(Integer id);

    /**
     * 分页数据展示
     * @param base
     * @return
     */
    Pager listPage(EngPicBase base);

    /**
     * 删除
     * @param id
     * @return
     */
    ServerResponse del(Integer id);

    /**
     * 查看图片
     * @param uniCode
     * @return
     */
    ServerResponse lookPic(String uniCode);

    ServerResponse updateEngPicBase(EngPicBase engPicBase);
}
